import {defineComponent,ref} from "vue";

export default defineComponent({
    props: {
        title: {
            type: String
        },
    },
    setup(props, context){
        let age=ref(23);
        let ageAdd=()=>{
            age.value++
            console.log('props:',props.title);
        }
        return ()=>(<div>{age.value}<button onClick={ageAdd}>ageAdd</button></div>);
    }
})